[index]
Milliseconds (Msecs) Function
Syntax: milliseconds () or
the msecs
Description
Examples
Create a button called Milliseconds and place the following mouseDown handler into its script:
on mouseDown
put the milliseconds into startmsecs
repeat until the mouse is up
end repeat
put the msecs into endmsecs
&& totalmsecs/1000 && "seconds" end mouseDown
Now click and hold down the mouse for a few seconds. When you release the mouse, a dialog appears telling you how long you held the mouse down.
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.